package com.bkd.dreams.client;

import com.bkd.dreams.client.login.NotLoggedInException;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.TabPanel;

public abstract class ComponentRenderer {

	public ComponentRenderer() {
		super();
	}

	public abstract void loadTable(TabPanel tabPanel);
	
	protected void handleError(Throwable error) {
		Window.alert(error.getMessage());
		if (error instanceof NotLoggedInException) {
			//Window.Location.replace(loginInfo.getLogoutUrl());
		}
	}

}